package com.yl.student.bean.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 只做登陆信息校验，只返回响应信息，即result和status
 * @author lenovo
 */
@Data
@AllArgsConstructor
public class DataVerifyResponseDto {
    /**
     * result:结果，例如通过/不通过
     * status:状态码，常用的为200/500
     * errorMessage:错误信息
     * successMessage:成功信息
     * token:登陆信息的唯一标识
     * */
    private String result;
    private String status;
    private String errorMessage;
    private String successMessage;
    private String token;

    public DataVerifyResponseDto(String result, String status, String errorMessage, String successMessage) {
        this.result = result;
        this.status = status;
        this.errorMessage = errorMessage;
        this.successMessage = successMessage;
    }
}
